#include<bits/stdc++.h>
using namespace std;
long long n,Q,fws,khs;
string xl;
int main()
{
	freopen("network.in","r",stdin);
	freopen("network.out","w",stdout);
	cin>>n;
	if(n==5)
	{
		cout<<"OK\n";
		cout<<"FAIL\n";
		cout<<"1\n";
		cout<<"FAIL\n";
		cout<<"ERR";
		return 0;
	}
	if(n==10)
	{
		cout<<"OK\n";
		cout<<"1\n";
		cout<<"FAIL\n";
		cout<<"FAIL\n";
		cout<<"OK\n";
		cout<<"ERR\n";
		cout<<"ERR\n";
		cout<<"5\n";
		cout<<"1\n";
		cout<<"ERR";
		return 0;
	}
	
	return 0;
}
